<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>后台管理系统</title>

<script src="<%=path %>/b/adapter.js"></script> <!--rem适配js-->

<link rel="stylesheet" href="<%=path %>/css/b/base.css"> <!--初始化文件-->
<link rel="stylesheet" href="<%=path %>/css/b/menu.css"> <!--主样式-->
<link rel="stylesheet" href="<%=path %>/css/b/content.css"> <!--content样式-->
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>

</head>
    <style>
    	.error{
			color:#F00;
		}
    </style>
<body>


<jsp:include page="/bs/nav.jsp"></jsp:include>
<div id="content">
		<jsp:include page="/bs/top.jsp"></jsp:include>
    <div class="all">
        <div class="rightall float-left">
            <div class="already">
					<div class="content">
                        <form id="signupForm" action="" method="">
                            <table class="content_table" cellpadding="0" cellspacing="20" id="aa">
                                <tr>
                                    <td class="table_left">旧密码：</td>
                                    <td>
                                        <input class="content_input" id="pwd" type="password"   name="pwd" />
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_left">新密码：</td>
                                    <td>
                                        <input class="content_input"  id="password" type="password" name="password"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="table_left">确认密码：</td> 
                                    <td>	
                                        <input class="content_input" id="confirm_password" type="password" name="confirm_password"/>
                                        <span class="span" id="usrErr"></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td> 
                                    <td>
                                        <input class="btn-style submit" type="submit" value="保存" />
                                    </td>
                                </tr>
                    	</table>
                	</form>
            	</div>
           	</div>
        </div>
        <div class="float-clear"></div>
    </div>
</div>

    <script>
    	$.validator.setDefaults({
			submitHandler: function() {
			  
			}
		});
		$().ready(function() {
			$("#signupForm").validate({
				rules: {
					pwd: {
						required: true,
						minlength: 5,
						maxlength:16
					},
					password: {
						required: true,
						minlength: 5,
						maxlength:16
					},
					confirm_password :{
						required: true,
						minlength: 5,
						maxlength:16,
						equalTo: "#password"
					}
				},
				messages: {
					pwd:{
						required: "请输入密码",
	        			minlength: "密码长度不能小于 5 个字母",
						maxlength:"密码长度不能大于16个字母"
					},
					password:{
						required: "请输入密码",
	        			minlength: "密码长度不能小于 5 个字母",
						maxlength:"密码长度不能大于16个字母"
					},
					confirm_password:{
						required: "请输入密码",
						minlength: "密码长度不能小于 5 个字母",
						equalTo: "两次密码输入不一致"
					}
				}
			});
		});
    </script>
<script src="<%=path %>/js/b/menu.js"></script> <!--控制js-->
</body>
</html>